<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSPictureInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('s_picture_info', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment("图片名称");
            // $table->string('email')->unique();
            $table->string('pic_type')->comment("图片类型 1,首页轮播图，2,课程介绍图");
            $table->string('pic_url')->comment("图片地址");
            $table->string('to_url')->comment("跳转地址")->nullable();
            $table->integer('course_type')->comment("课程类型");
            $table->integer('admin_id')->comment("最后操作人");

            $table->timestamps();
            $table->SoftDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
